<%--
  Created by IntelliJ IDEA.
  User: YYY
  Date: 2017/8/4
  Time: 20:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path;
%>
<!DOCTYPE>
<html>
<head>
    <title>已发布健康档案列表</title>

    <meta charset="UTF-8">
    <meta content='width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no' name='viewport'>

    <script type="text/javascript" src="<%=basePath%>/js/jquery-2.1.1.min.js"></script>

    <style type="text/css">
        .table th, .table td {
            text-align: center;
            vertical-align: middle !important;
        }
    </style>
</head>
<body class="skin-blue">
<s:action name="getHeader" namespace="/privilege" executeResult="true"/>
<div class="wrapper row-offcanvas row-offcanvas-left">

    <!-- Left side column. contains the logo and sidebar -->

    <!-- getMenus -->
    <s:action name="getMenus" namespace="/privilege" executeResult="true"/>

    <!-- Right side column. Contains the navbar and content of the page -->
    <aside class="right-side">

        <!-- Content Header (Page header) -->
        <section class="content-header">
            <h1>
                <small>已发布健康档案列表</small>
            </h1>
        </section>

        <!-- Main content -->
        <section class="content">
            <div class="row">
                <div class="col-xs-12">
                    <div class="box">

                        <div class="box box-danger">

                            <div class="box-body">

                                <form action="javascript:searchGoodsDataUser();" class="form-horizontal"
                                      name="searchForm">

                                    <div class="form-group">
                                        <lable style="float: left;margin-left: 30px">用户ID</lable>
                                        <input type="text" id="ownerId" class="col-sm-2"
                                               style="float: left;margin-left: 30px">
                                        <lable style="float: left;margin-left: 30px">用户姓名</lable>
                                        <input type="text" id="ownerName" class="input-small col-sm-2"
                                               style="float: left;margin-left: 30px">

                                        <button type="submit" class="btn btn-primary" style="margin-left: 15px">查询
                                        </button>
                                    </div>
                                </form>
                            </div><!-- /.box-body -->
                        </div><!-- /.box -->
                        <!-- 文章列表 -->
                        <form method="post" target="_self" action="" name="listForm">
                            <div class="box-body table-responsive" id="listDiv">

                                <s:property value="res" escape="false"/>
                            </div><!-- /.box-body -->
                        </form>

                    </div><!-- /.box -->


                </div>
            </div>

        </section><!-- /.content -->

    </aside>
</div>
</body>

<script type="text/javascript" src="<%=basePath%>/js/admin/utils.js"></script>
<script type="text/javascript" src="<%=basePath%>/js/base/listtable.js"></script>
<link href="<%=basePath%>/css/fileinput.css" media="all" rel="stylesheet" type="text/css"/>
<link href="<%=basePath%>/themes/explorer/theme.css" media="all" rel="stylesheet" type="text/css"/>
<script src="<%=basePath%>/js/sortable.js" type="text/javascript"></script>
<script src="<%=basePath%>/js/fileinput.js" type="text/javascript"></script>
<script src="<%=basePath%>/js/locales/zh.js" type="text/javascript"></script>
<script src="<%=basePath%>/themes/explorer/theme.js" type="text/javascript"></script>

<script type="text/javascript">
    function searchGoodsDataUser() {

        var ownerId = Utils.trim($("#ownerId").val());
        var ownerName = Utils.trim($("#ownerName").val());

        listTable.filter['ownerId'] = ownerId;
        listTable.filter['ownerName'] = ownerName;
        listTable.filter['operFlag'] =5;
        listTable.filter['currentPage'] = 1;
        listTable.action = "<%=basePath%>/healthrecord/ajaxQueryHealthRecordList.action";

        listTable.loadList();
    }

    $(document).ready(new function () {
        searchGoodsDataUser();
    });

</script>

</html>
